#ifndef _MOVE_H_
#define _MOVE_H_

#include "Object.h"


class Move : public Object
{
public:

	Move();
	virtual ~Move();


	void Movable( float x, float y, float DirX, float DirY, float Speed );
	void MoveEnd( float x, float y, float DirX, float DirY );

	void SetCollisionDir( D3DXVECTOR2 Dir );
	void MapPosition( int Map[16][16] );

	bool isCollisionChar( D3DXVECTOR3 Pos, D3DXVECTOR3 EnemyPos, unsigned int dt );


	D3DXVECTOR2 GetDir()	 { return m_vTempDir; }
	float GetSpeed()		 { return m_fSpeed; }
	int GetintSpeed()		 { return m_iSpeed; }
	int GetBombNum()		 { return m_iBombNum; }
	int GetBombPower()		 { return m_iBombPower; }
	const D3DXVECTOR3 GetCharPos() { return m_vCharacterPos; }
	D3DXVECTOR3 GetMoveDir() { return m_vMoveDir; }

	void SetItemBomb( int Bomb );
	void SetItemPower( int Power );
	void SetItemSpeed( float Speed );

protected:

	float Distance( float x, float y, int Count );

	float		m_fSpeed;
	int			m_iSpeed;
	int			m_iBombNum;
	int			m_iBombPower;
	float		m_fAngle;

	D3DXVECTOR3 m_vCharacterPos;
	D3DXVECTOR2 m_vTempDir;
	D3DXVECTOR3 m_vMoveDir;
	D3DXVECTOR3 m_vDist[9];

	int			m_iTable[9][2];
	int			m_iMoveState;


};





#endif